package com.kx.center.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kx.center.common.JsonDatetimeSerializer;

@JsonIgnoreProperties({
	"fromStore", "toStore"
})
public class Allocation {
	private Integer id;
	private String sn;
	private Integer fromId;
	private Integer toId;
	private Integer status;
	private String memo;
	private Date addtime;
	private Date edittime;
	
	private Store from;
	private Store to;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	@JsonSerialize(using = JsonDatetimeSerializer.class)
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	@JsonSerialize(using = JsonDatetimeSerializer.class)
	public Date getEdittime() {
		return edittime;
	}
	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}
	public Integer getFromId() {
		return fromId;
	}
	public void setFromId(Integer fromId) {
		this.fromId = fromId;
	}
	public Integer getToId() {
		return toId;
	}
	public void setToId(Integer toId) {
		this.toId = toId;
	}
	public Store getFrom() {
		return from;
	}
	public void setFrom(Store from) {
		this.from = from;
	}
	public Store getTo() {
		return to;
	}
	public void setTo(Store to) {
		this.to = to;
	}
}
